/*
 * ****************************************************************************
 * Copyright: 2020-2030, YZChain Tech. Co., Ltd.
 * File name:
 * Description:
 * Author: Dc luo
 * Version: v1.0
 * Date: $DATE
 * History:
 * ***************************************************************************
 */

package com.srp.blockchain.bcos.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "合约信息DTO")
public class ChainStatusDTO {

    @ApiModelProperty(value = "节点数量")
    private Integer nodeCnt;

    @ApiModelProperty(value = "区块高度")
    private String blockHeight;

    @ApiModelProperty(value = "总交易数")
    private String txCnt;

    @ApiModelProperty(value = "总合约数量")
    private Integer contractCnt;

    @ApiModelProperty(value = "正在运行合约数量")
    private Integer contractRunCnt;

    public ChainStatusDTO(Integer nodeCnt, String blockHeight, String txCnt,
                          Integer contractCnt, Integer contractRunCnt) {
        this.nodeCnt = nodeCnt;
        this.blockHeight = blockHeight;
        this.txCnt = txCnt;
        this.contractCnt = contractCnt;
        this.contractRunCnt = contractRunCnt;
    }

}
